package com.meevle.web;

import java.util.List;
import java.util.Map;


public class ApplicationServletSettings {

	private List<Object> cssFiles;
	private List<Object> scripts;
	private INavigationFactory navigationFactory;
	private ISidebarFactory sidebarFactory;
	private Map<Object, Object> indexPages;
	private Map<Object, Object> studioPages;
	private Map<Object, Object> communityPages;
	
	private String firstIndexPage;
	private String firstStudioPage;
	private String firstCommunityPage;
	
	private volatile static ApplicationServletSettings instance = null;
	
	private ApplicationServletSettings()
	{}
	
	public static ApplicationServletSettings getInstance () {
        if (instance == null)
        {
        	synchronized (ApplicationServletSettings.class)
        	{
        		if (instance == null) instance = new ApplicationServletSettings ();
			}
        }
        return instance;
    }
	
	public List<Object> getCssFiles() {
		return cssFiles;
	}

	public void setCssFiles(List<Object> cssFiles) {
		this.cssFiles = cssFiles;
	}

	public List<Object> getScripts() {
		return scripts;
	}

	public void setScripts(List<Object> scripts) {
		this.scripts = scripts;
	}
	
	public INavigationFactory getNavigationFactory() {
		return navigationFactory;
	}
	
	public void setNavigationFactory(INavigationFactory navigationFactory) {
		this.navigationFactory = navigationFactory;
	}
	
	public ISidebarFactory getSidebarFactory() {
		return sidebarFactory;
	}
	
	public void setSidebarFactory(ISidebarFactory sidebarFactory) {
		this.sidebarFactory = sidebarFactory;
	}
	
	public Map<Object, Object> getIndexPages() {
		return indexPages;
	}
	
	public void setIndexPages(Map<Object, Object> indexPages) {
		this.indexPages = indexPages;
	}

	public String getFirstIndexPage() {
		return this.firstIndexPage;
	}
	
	public void setFirstIndexPage(String firstIndexPage) {
		this.firstIndexPage = firstIndexPage;
	}
	
	public Map<Object, Object> getStudioPages() {
		return studioPages;
	}
	
	public void setStudioPages(Map<Object, Object> studioPages) {
		this.studioPages = studioPages;
	}
	
	public String getFirstStudioPage() {
		return firstStudioPage;
	}
	
	public void setFirstStudioPage(String firstStudioPage) {
		this.firstStudioPage = firstStudioPage;
	}
	
	public Map<Object, Object> getCommunityPages() {
		return communityPages;
	}
	
	public void setCommunityPages(Map<Object, Object> communityPages) {
		this.communityPages = communityPages;
	}
	
	public String getFirstCommunityPage() {
		return firstCommunityPage;
	}
	
	public void setFirstCommunityPage(String firstCommunityPage) {
		this.firstCommunityPage = firstCommunityPage;
	}

}
